<template>
  <div>

    <p>您确定要删除：{{chouse.community}}小区{{chouse.building}}栋{{chouse.unit}}单元{{chouse.num}}号房屋吗</p>
    <div id="action">
      <el-button type="success"
                 size="mini"
                 @click="cancel">取消</el-button>
      <el-button type="danger"
                 size="mini"
                 @click="commit">确定</el-button>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    chouse: {}
  },
  data () {
    return {

    }
  },
  methods: {
    //取消删除
    cancel () {
      this.$emit("closedeletedialog", { result: false, data: {} });
    },
    //确认删除
    commit () {
      console.log(this.chouse.id);
      this.$emit("closedeletedialog", { result: true, data: this.chouse.id });
    }
  }
}
</script>

<style scoped></style>